package com.runa.persistence.repository;

import com.runa.monitor.comm.entity.EntityErrorLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 2024/7/2 11:46
 * zhangYB
 */
@Repository
public interface ErrorLogRepository extends JpaRepository<EntityErrorLog, Integer> {


    List<EntityErrorLog> findByIdentify(String identify);
    List<EntityErrorLog> findByNode(String node);

    void deleteByNodeAndEvent(String node, String event);

}
